Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inference/fal-ai): b64 response format argument #1149

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

badayvedat
Copy link

fal-ai endpoints are using sync_mode: true argument to receive the result as a base64 data uri
here is an example input/output with the parameter: https://fal.ai/models/fal-ai/flux/dev?share=c1793354-3994-44ef-a50b-31ef2ee9c90f

@julien-c
Copy link
Member

launching the CI to see if it passes the existing fal tests

@SBrandeis
Copy link
Contributor

SBrandeis commented Jan 29, 2025

Code looks good to me!

@badayvedat can you update the tapes.json file, please? It's used to replay HTTP responses in the CI.
You can do so by running test with VCR_MODE=cache:

VCR_MODE=cache pnpm run test

@badayvedat
Copy link
Author

thanks @SBrandeis ! updated them
fyi the new response objects are base64 images - which increased the file size of tapes.json significantly -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants